package com.springcloud.zuul.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.springcloud.zuul.common.validator.group.AddGroup;
import com.springcloud.zuul.common.validator.group.UpdateGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @program: springcloud-zuul
 * @description: 产品与权限
 * @author: zhlu
 * @create: 2020-01-02 11:37
 * @Introduction(说明背景故事)
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_product_menu")
public class SysProductMenuEntity extends CommonEntity{

    @TableId
    private String guId;

    /**
     * 产品编码
     */
    @NotBlank(message = "产品编码不能为空！",groups = {AddGroup.class, UpdateGroup.class})
    private String productId;

    /**
     * 产品名称
     */
    private String productName;

    /**
     * 权限功能编码
     */
    @NotBlank(message = "权限功能编码不能为空！",groups = {AddGroup.class,UpdateGroup.class})
    private String menuId;

    /**
     * 权限功能名称
     */
    private String menuName;

}
